package com.feign.service;

import com.feign.fallback.UserServiceFallback;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * Created by 许小宝 on 2017/9/22.
 */
@FeignClient(name ="HELLO-SERVICE", fallback = UserServiceFallback.class)
public interface UserService {
    @GetMapping("/user")
    String getUserName();
}
